﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ZenSystemService.Api.Migrations
{
    /// <inheritdoc />
    public partial class OrderDetail : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BuyCourseNum",
                table: "TraineeOrders");

            migrationBuilder.DropColumn(
                name: "BuyCourseTypeId",
                table: "TraineeOrders");

            migrationBuilder.RenameColumn(
                name: "BuyCoursePrice",
                table: "TraineeOrders",
                newName: "BuyCourseTotalPrice");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "BuyCourseTotalPrice",
                table: "TraineeOrders",
                newName: "BuyCoursePrice");

            migrationBuilder.AddColumn<int>(
                name: "BuyCourseNum",
                table: "TraineeOrders",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "BuyCourseTypeId",
                table: "TraineeOrders",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
